﻿
using System;
using Stub;

[Native, Rename("_G")]
public class Lua
{
    [Native, Rename("print")]
    public extern static void Print(params object[] args);

    [Native, Rename("math")]
    public class Math
    {
        [Native, Rename("random")]
        public extern static int Random(int v1, int v2);

        [Native, Rename("random")]
        public extern static float Random();

        [Native, Rename("randomseed")]
        public extern static void Seed(int value);

        [Native, Rename("randomseed")]
        public extern static void Seed(double v);

        [Native, Rename("floor")]
        public extern static int Ffloor(float p);

        [Native, Rename("pow")]
        public extern static double Pow(int v1, int v2);

        [Native, Rename("min")]
        public extern static int Min(int v, int count);

        [Native, Rename("min")]
        public extern static float Min(float v, float count);

        [Native, Rename("max")]
        public extern static float Max(float space, float tailPartCapacity);

        [Native, Rename("max")]
        public extern static int Max(int space, int tailPartCapacity);

        [Native, Rename("abs")]
        public extern static int Abs(int iRewardScore);

        [Native, Rename("abs")]
        public extern static long Abs(long iRewardScore);

        [Native, Rename("sin")]
        public extern static double Sin(double r);

    }
}
